DEMO #2: While using custom blocks can be fast, we would have to drag in the block 62 more times to decode our message. However, because we have a string, we can easily loop through it, saving us a bunch of time!

When we loop through a string, the loop runs once for each letter in the string.

  • Run the program to see an example. Follow the directions on stage to complete the activity.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)